<?php
$base_url = 'http://localhost/rumo';

function img($src, $style=NULL){
	$base_url = $GLOBALS['base_url'];
	return '<img src='.$base_url.'/'.$src.' style='.$style.' />';
}

function link_style($href){
	$base_url = $GLOBALS['base_url'];
	return "<link rel='stylesheet' href='".$base_url."/".$href."' type='text/css' media='screen' /> \n";
}

function script($src){
	$base_url = $GLOBALS['base_url'];
	return "<script type='text/javascript' src='".$base_url."/".$src."'></script> \n";
}

function get_url($href, $value){
	$base_url = $GLOBALS['base_url'];
	return "<a href='".$base_url."/".$href."'>".$value."</a>";
}
?>